#include <cjsonvaluestring.h>

CJsonValueString::CJsonValueString(jstring value) :
  CJsonValue(JV_STRING)
{
  this->value = value;
}

CJsonValueString::CJsonValueString(const CJsonValueString * value) :
  CJsonValue(JV_STRING)
{
  value->GetValue(this->value);
}

jstring CJsonValueString::ToString() const
{
  return J("\"") + value + J("\"");
}

void CJsonValueString::GetValue(jstring & str) const
{
  str = value;
}

